package com.big.merchandise;

import com.big.common.result.Result;
import com.big.model.model.merchandise.MerchandiseDetail;
import com.big.model.model.merchandise.MerchandiseInfo;
import com.big.model.model.merchandise.MerchandiseOffers;
import com.big.model.model.merchandise.MerchandiseSpecificationPackage;
import com.big.model.model.merchandise.comment.MerchandiseComment;
import com.big.model.model.patient.PatientDsn;
import com.big.model.vo.patient.PatientVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "service-merchandise")
@Repository
public interface MerchandiseFeignClient {

      /**
       * 商品描述
       * @param did
       * @return
       */
      @GetMapping("/api/merchan/merchandise/auth/FindInfo/{did}")
      public MerchandiseDetail FindMerchanInfo(@PathVariable("did") String did);

      /**
       * 商品详情
       * @param id
       * @return
       */
      @GetMapping("/api/merchan/merchandise/auth/findMerchanInfo/{id}")
      public MerchandiseInfo findInfoMerchandise(@PathVariable("id") String id);


      @ApiOperation(value = "优惠方式列表")
      @GetMapping("/admin/merchan/offers/infos/{mId}")
      public Result offersInfos(@PathVariable("mId") String mId);

      /**
       *查询单套餐
       */


      @ApiOperation(value = "查单套餐")
      @GetMapping("/api/merchan/specificationPackage/findPackage/{mId}")
      public MerchandiseSpecificationPackage findSpecificationPackage(@PathVariable("mId") String mId);


      @ApiOperation(value = "订单评论")
      @PostMapping("/api/merchan/commReply/saveComment")
      public Integer  saveComment (@RequestBody MerchandiseComment merchandiseComment );

}
